package ysq.xyg.model.info;

import ysq.xyg.util.BaseConstant;

/**
 * @author yu sheng qiang
 * @create 2017-05-03 14:04
 **/
public class ReturnInfo {
    /**
     * 状态：1.成功，2.失败
     */
    private int state = BaseConstant.SUCCESS;
    /**
     * 失败原因
     */
    private String errorMsg;
    private Object result;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public ReturnInfo() {
    }

    public ReturnInfo(int state, String errorMsg) {
        this.state = state;
        this.errorMsg = errorMsg;
    }

    public ReturnInfo(int state, Object result) {
        this.state = state;
        this.result = result;
    }
}
